/*
 * CalendarDemoFrame.java
 *
 * Created on January 25, 2005, 9:37 PM
 */

package com.regal.canlendar;

public class CalendarDemoFrame extends javax.swing.JFrame {
    
      
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	DateChooser datechooser = new DateChooser(this, true);
    
    java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy.MM.dd");
    
    /** Creates new form CalendarDemoFrame */
    public CalendarDemoFrame() {
        initComponents();
        // init to 2005 calendar
        demo1ButtonActionPerformed(null);
        // set api pages
        try {
            apiBrowser1.setPage(ClassLoader.getSystemResource("hysun/resources/monthlycalendar_api.html"));
        } catch (java.io.IOException ioe) {
            apiBrowser1.setText("Unable to display the api here.\nPlease extract it from the jar or use javadoc to generate directly from the source code");
        }
        try {
            apiBrowser2.setPage(ClassLoader.getSystemResource("hysun/resources/datechooser_api.html"));
        } catch (java.io.IOException ioe) {
            apiBrowser2.setText("Unable to display the api here.\nPlease extract it from the jar or use javadoc to generate directly from the source code");
        }
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
    	//
        demo3Header = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        demo1Panel = new javax.swing.JPanel();
        demo1Ctrl = new javax.swing.JPanel();
        demo1Label = new javax.swing.JLabel();
        demo1TextField = new javax.swing.JTextField();
        demo1Button = new javax.swing.JButton();
        demo1Scroll = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        demo1View = new javax.swing.JPanel();
        unit1 = new javax.swing.JPanel();
        mname1 = new javax.swing.JLabel();
        month1 = new MonthlyCalendar();
        unit2 = new javax.swing.JPanel();
        mname2 = new javax.swing.JLabel();
        month2 = new MonthlyCalendar();
        unit3 = new javax.swing.JPanel();
        mname3 = new javax.swing.JLabel();
        month3 = new MonthlyCalendar();
        unit4 = new javax.swing.JPanel();
        mname4 = new javax.swing.JLabel();
        month4 = new MonthlyCalendar();
        unit5 = new javax.swing.JPanel();
        mname5 = new javax.swing.JLabel();
        month5 = new MonthlyCalendar();
        unit6 = new javax.swing.JPanel();
        mname6 = new javax.swing.JLabel();
        month6 = new MonthlyCalendar();
        unit7 = new javax.swing.JPanel();
        mname7 = new javax.swing.JLabel();
        month7 = new MonthlyCalendar();
        unit8 = new javax.swing.JPanel();
        mname8 = new javax.swing.JLabel();
        month8 = new MonthlyCalendar();
        unit9 = new javax.swing.JPanel();
        mname9 = new javax.swing.JLabel();
        month9 = new MonthlyCalendar();
        unit10 = new javax.swing.JPanel();
        mname10 = new javax.swing.JLabel();
        month10 = new MonthlyCalendar();
        unit11 = new javax.swing.JPanel();
        mname11 = new javax.swing.JLabel();
        month11 = new MonthlyCalendar();
        unit12 = new javax.swing.JPanel();
        mname12 = new javax.swing.JLabel();
        month12 = new MonthlyCalendar();
        demo2Panel = new javax.swing.JPanel();
        demo2Ctrl = new javax.swing.JPanel();
        demo2Button = new javax.swing.JButton();
        demo2Scroll = new javax.swing.JScrollPane();
        demo2TextArea = new javax.swing.JTextArea();
        demo3Panel = new javax.swing.JPanel();
        demo3View = new javax.swing.JPanel();
        demo3Calendar = new MonthlyCalendar();
        demo3Label = new javax.swing.JLabel();
        apiScroll1 = new javax.swing.JScrollPane();
        apiBrowser1 = new javax.swing.JEditorPane();
        apiScroll2 = new javax.swing.JScrollPane();
        apiBrowser2 = new javax.swing.JEditorPane();
        copyrightLabel = new javax.swing.JLabel();

        demo3Header.setIcon(new javax.swing.ImageIcon(getClass().getResource("header.gif")));

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Java Calendar UI Component Demo");
        jTabbedPane1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 10, 0, 10)));
        demo1Panel.setLayout(new java.awt.BorderLayout());

        demo1Label.setText("Year Value:");
        demo1Ctrl.add(demo1Label);

        demo1TextField.setColumns(8);
        demo1TextField.setText("2005");
        demo1Ctrl.add(demo1TextField);

        demo1Button.setText("Re-generate");
        demo1Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demo1ButtonActionPerformed(evt);
            }
        });

        demo1Ctrl.add(demo1Button);

        demo1Panel.add(demo1Ctrl, java.awt.BorderLayout.NORTH);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        demo1View.setLayout(new java.awt.GridLayout(4, 3, 15, 5));

        demo1View.setBackground(new java.awt.Color(255, 255, 255));
        demo1View.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 15, 5, 15)));
        unit1.setLayout(new java.awt.BorderLayout());

        unit1.setBackground(new java.awt.Color(255, 255, 255));
        mname1.setFont(new java.awt.Font("Arial", 1, 14));
        mname1.setForeground(new java.awt.Color(102, 153, 0));
        mname1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname1.setText("January");
        mname1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit1.add(mname1, java.awt.BorderLayout.NORTH);

        month1.setCellDimension(new java.awt.Dimension(20, 16));
        month1.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month1.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month1.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month1.setMouseListeningEnabled(false);
        month1.setWeekStartOnSunday(false);
        unit1.add(month1, java.awt.BorderLayout.CENTER);

        demo1View.add(unit1);

        unit2.setLayout(new java.awt.BorderLayout());

        unit2.setBackground(new java.awt.Color(255, 255, 255));
        mname2.setFont(new java.awt.Font("Arial", 1, 14));
        mname2.setForeground(new java.awt.Color(102, 153, 0));
        mname2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname2.setText("Feburary");
        mname2.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit2.add(mname2, java.awt.BorderLayout.NORTH);

        month2.setCellDimension(new java.awt.Dimension(20, 16));
        month2.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month2.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month2.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month2.setMouseListeningEnabled(false);
        month2.setWeekStartOnSunday(false);
        unit2.add(month2, java.awt.BorderLayout.CENTER);

        demo1View.add(unit2);

        unit3.setLayout(new java.awt.BorderLayout());

        unit3.setBackground(new java.awt.Color(255, 255, 255));
        mname3.setFont(new java.awt.Font("Arial", 1, 14));
        mname3.setForeground(new java.awt.Color(102, 153, 0));
        mname3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname3.setText("March");
        mname3.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit3.add(mname3, java.awt.BorderLayout.NORTH);

        month3.setCellDimension(new java.awt.Dimension(20, 16));
        month3.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month3.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month3.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month3.setMouseListeningEnabled(false);
        month3.setWeekStartOnSunday(false);
        unit3.add(month3, java.awt.BorderLayout.CENTER);

        demo1View.add(unit3);

        unit4.setLayout(new java.awt.BorderLayout());

        unit4.setBackground(new java.awt.Color(255, 255, 255));
        mname4.setFont(new java.awt.Font("Arial", 1, 14));
        mname4.setForeground(new java.awt.Color(102, 153, 0));
        mname4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname4.setText("April");
        mname4.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit4.add(mname4, java.awt.BorderLayout.NORTH);

        month4.setCellDimension(new java.awt.Dimension(20, 16));
        month4.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month4.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month4.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month4.setMouseListeningEnabled(false);
        month4.setWeekStartOnSunday(false);
        unit4.add(month4, java.awt.BorderLayout.CENTER);

        demo1View.add(unit4);

        unit5.setLayout(new java.awt.BorderLayout());

        unit5.setBackground(new java.awt.Color(255, 255, 255));
        mname5.setFont(new java.awt.Font("Arial", 1, 14));
        mname5.setForeground(new java.awt.Color(102, 153, 0));
        mname5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname5.setText("May");
        mname5.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit5.add(mname5, java.awt.BorderLayout.NORTH);

        month5.setCellDimension(new java.awt.Dimension(20, 16));
        month5.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month5.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month5.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month5.setMouseListeningEnabled(false);
        month5.setWeekStartOnSunday(false);
        unit5.add(month5, java.awt.BorderLayout.CENTER);

        demo1View.add(unit5);

        unit6.setLayout(new java.awt.BorderLayout());

        unit6.setBackground(new java.awt.Color(255, 255, 255));
        mname6.setFont(new java.awt.Font("Arial", 1, 14));
        mname6.setForeground(new java.awt.Color(102, 153, 0));
        mname6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname6.setText("June");
        mname6.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit6.add(mname6, java.awt.BorderLayout.NORTH);

        month6.setCellDimension(new java.awt.Dimension(20, 16));
        month6.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month6.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month6.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month6.setMouseListeningEnabled(false);
        month6.setWeekStartOnSunday(false);
        unit6.add(month6, java.awt.BorderLayout.CENTER);

        demo1View.add(unit6);

        unit7.setLayout(new java.awt.BorderLayout());

        unit7.setBackground(new java.awt.Color(255, 255, 255));
        mname7.setFont(new java.awt.Font("Arial", 1, 14));
        mname7.setForeground(new java.awt.Color(102, 153, 0));
        mname7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname7.setText("July");
        mname7.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit7.add(mname7, java.awt.BorderLayout.NORTH);

        month7.setCellDimension(new java.awt.Dimension(20, 16));
        month7.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month7.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month7.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month7.setMouseListeningEnabled(false);
        month7.setWeekStartOnSunday(false);
        unit7.add(month7, java.awt.BorderLayout.CENTER);

        demo1View.add(unit7);

        unit8.setLayout(new java.awt.BorderLayout());

        unit8.setBackground(new java.awt.Color(255, 255, 255));
        mname8.setFont(new java.awt.Font("Arial", 1, 14));
        mname8.setForeground(new java.awt.Color(102, 153, 0));
        mname8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname8.setText("August");
        mname8.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit8.add(mname8, java.awt.BorderLayout.NORTH);

        month8.setCellDimension(new java.awt.Dimension(20, 16));
        month8.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month8.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month8.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month8.setMouseListeningEnabled(false);
        month8.setWeekStartOnSunday(false);
        unit8.add(month8, java.awt.BorderLayout.CENTER);

        demo1View.add(unit8);

        unit9.setLayout(new java.awt.BorderLayout());

        unit9.setBackground(new java.awt.Color(255, 255, 255));
        mname9.setFont(new java.awt.Font("Arial", 1, 14));
        mname9.setForeground(new java.awt.Color(102, 153, 0));
        mname9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname9.setText("September");
        mname9.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit9.add(mname9, java.awt.BorderLayout.NORTH);

        month9.setCellDimension(new java.awt.Dimension(20, 16));
        month9.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month9.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month9.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month9.setMouseListeningEnabled(false);
        month9.setWeekStartOnSunday(false);
        unit9.add(month9, java.awt.BorderLayout.CENTER);

        demo1View.add(unit9);

        unit10.setLayout(new java.awt.BorderLayout());

        unit10.setBackground(new java.awt.Color(255, 255, 255));
        mname10.setFont(new java.awt.Font("Arial", 1, 14));
        mname10.setForeground(new java.awt.Color(102, 153, 0));
        mname10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname10.setText("October");
        mname10.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit10.add(mname10, java.awt.BorderLayout.NORTH);

        month10.setCellDimension(new java.awt.Dimension(20, 16));
        month10.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month10.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month10.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month10.setMouseListeningEnabled(false);
        month10.setWeekStartOnSunday(false);
        unit10.add(month10, java.awt.BorderLayout.CENTER);

        demo1View.add(unit10);

        unit11.setLayout(new java.awt.BorderLayout());

        unit11.setBackground(new java.awt.Color(255, 255, 255));
        mname11.setFont(new java.awt.Font("Arial", 1, 14));
        mname11.setForeground(new java.awt.Color(102, 153, 0));
        mname11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname11.setText("November");
        mname11.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit11.add(mname11, java.awt.BorderLayout.NORTH);

        month11.setCellDimension(new java.awt.Dimension(20, 16));
        month11.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month11.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month11.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month11.setMouseListeningEnabled(false);
        month11.setWeekStartOnSunday(false);
        unit11.add(month11, java.awt.BorderLayout.CENTER);

        demo1View.add(unit11);

        unit12.setLayout(new java.awt.BorderLayout());

        unit12.setBackground(new java.awt.Color(255, 255, 255));
        mname12.setFont(new java.awt.Font("Arial", 1, 14));
        mname12.setForeground(new java.awt.Color(102, 153, 0));
        mname12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        mname12.setText("December");
        mname12.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 5, 0)));
        unit12.add(mname12, java.awt.BorderLayout.NORTH);

        month12.setCellDimension(new java.awt.Dimension(20, 16));
        month12.setHeaderBackground(new java.awt.Color(255, 255, 255));
        month12.setHeaderFont(new java.awt.Font("Verdana", 1, 11));
        month12.setHeaderForeground(new java.awt.Color(0, 0, 0));
        month12.setMouseListeningEnabled(false);
        month12.setWeekStartOnSunday(false);
        unit12.add(month12, java.awt.BorderLayout.CENTER);

        demo1View.add(unit12);

        jPanel1.add(demo1View);

        demo1Scroll.setViewportView(jPanel1);

        demo1Panel.add(demo1Scroll, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab("<html><font color=\"blue\">MonthlyCalendar</font> Demo</html>", demo1Panel);

        demo2Panel.setLayout(new java.awt.BorderLayout());

        demo2Button.setText("Select Date");
        demo2Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                demo2ButtonActionPerformed(evt);
            }
        });

        demo2Ctrl.add(demo2Button);

        demo2Panel.add(demo2Ctrl, java.awt.BorderLayout.NORTH);

        demo2TextArea.setEditable(false);
        demo2TextArea.setFont(new java.awt.Font("Verdana", 0, 11));
        demo2TextArea.setLineWrap(true);
        demo2TextArea.setText("Click on the above button to popup the Date Chooser dialog and make selection.");
        demo2TextArea.setWrapStyleWord(true);
        demo2Scroll.setViewportView(demo2TextArea);

        demo2Panel.add(demo2Scroll, java.awt.BorderLayout.CENTER);

        jTabbedPane1.addTab("<html><font color=\"blue\">DateChooser</font> Demo</html>", demo2Panel);

        demo3Panel.setLayout(new java.awt.BorderLayout());

        demo3View.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 5, 15));

        demo3Calendar.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
        demo3Calendar.setHeaderComponent(demo3Header);
        demo3Calendar.setMonth(2);
        demo3Calendar.setYear(2005);
        demo3View.add(demo3Calendar);

        demo3Panel.add(demo3View, java.awt.BorderLayout.CENTER);

        demo3Label.setFont(new java.awt.Font("Verdana", 0, 11));
        demo3Label.setText("<html>\nA customized header is a JLabel object with an icon image. <br>\nThe graphics of the label is completely specified by the image. <br><br>\nThe calendar displays Feburary, 2005.\n</html>");
        demo3Label.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(10, 5, 10, 10)));
        demo3Panel.add(demo3Label, java.awt.BorderLayout.NORTH);

        jTabbedPane1.addTab("Customized Header", demo3Panel);

        apiBrowser1.setEditable(false);
        apiScroll1.setViewportView(apiBrowser1);

        jTabbedPane1.addTab("API Doc 1", apiScroll1);

        apiBrowser2.setEditable(false);
        apiScroll2.setViewportView(apiBrowser2);

        jTabbedPane1.addTab("API Doc 2", apiScroll2);

        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        copyrightLabel.setFont(new java.awt.Font("Verdana", 0, 11));
        copyrightLabel.setForeground(new java.awt.Color(255, 153, 153));
        copyrightLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        copyrightLabel.setText("Copyleft 2004 hysun");
        copyrightLabel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(8, 1, 10, 1)));
        getContentPane().add(copyrightLabel, java.awt.BorderLayout.SOUTH);

        pack();
    }//GEN-END:initComponents

    private void demo2ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demo2ButtonActionPerformed
        // TODO add your handling code here:
        datechooser.setLocationRelativeTo(this);
        datechooser.setVisible(true);
        java.util.Calendar cal = datechooser.getSelectedDate();
        if (cal != null) {
            demo2TextArea.append("\nDate Selected: " + formatter.format(cal.getTime()));
        }
    }//GEN-LAST:event_demo2ButtonActionPerformed

    private void demo1ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_demo1ButtonActionPerformed
        // TODO add your handling code here:
        try {
            int year = Integer.parseInt(demo1TextField.getText());
            if (year < 1970) {
                javax.swing.JOptionPane.showMessageDialog(this, "Year must be later than 1970!", "Error", javax.swing.JOptionPane.ERROR_MESSAGE);
            } else {
                month1.setYearMonth(year, 1);
                month2.setYearMonth(year, 2);
                month3.setYearMonth(year, 3);
                month4.setYearMonth(year, 4);
                month5.setYearMonth(year, 5);
                month6.setYearMonth(year, 6);
                month7.setYearMonth(year, 7);
                month8.setYearMonth(year, 8);
                month9.setYearMonth(year, 9);
                month10.setYearMonth(year, 10);
                month11.setYearMonth(year, 11);
                month12.setYearMonth(year, 12);
                month1.repaint();
                month2.repaint();
                month3.repaint();
                month4.repaint();
                month5.repaint();
                month6.repaint();
                month7.repaint();
                month8.repaint();
                month9.repaint();
                month10.repaint();
                month11.repaint();
                month12.repaint();
            }
        } catch (NumberFormatException e) {
            javax.swing.JOptionPane.showMessageDialog(this, "Invalid year!", "Error", javax.swing.JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_demo1ButtonActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        try {
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            
        }
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CalendarDemoFrame().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JEditorPane apiBrowser1;
    private javax.swing.JEditorPane apiBrowser2;
    private javax.swing.JScrollPane apiScroll1;
    private javax.swing.JScrollPane apiScroll2;
    private javax.swing.JLabel copyrightLabel;
    private javax.swing.JButton demo1Button;
    private javax.swing.JPanel demo1Ctrl;
    private javax.swing.JLabel demo1Label;
    private javax.swing.JPanel demo1Panel;
    private javax.swing.JScrollPane demo1Scroll;
    private javax.swing.JTextField demo1TextField;
    private javax.swing.JPanel demo1View;
    private javax.swing.JButton demo2Button;
    private javax.swing.JPanel demo2Ctrl;
    private javax.swing.JPanel demo2Panel;
    private javax.swing.JScrollPane demo2Scroll;
    private javax.swing.JTextArea demo2TextArea;
    private MonthlyCalendar demo3Calendar;
    private javax.swing.JLabel demo3Header;
    private javax.swing.JLabel demo3Label;
    private javax.swing.JPanel demo3Panel;
    private javax.swing.JPanel demo3View;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel mname1;
    private javax.swing.JLabel mname10;
    private javax.swing.JLabel mname11;
    private javax.swing.JLabel mname12;
    private javax.swing.JLabel mname2;
    private javax.swing.JLabel mname3;
    private javax.swing.JLabel mname4;
    private javax.swing.JLabel mname5;
    private javax.swing.JLabel mname6;
    private javax.swing.JLabel mname7;
    private javax.swing.JLabel mname8;
    private javax.swing.JLabel mname9;
    private MonthlyCalendar month1;
    private MonthlyCalendar month10;
    private MonthlyCalendar month11;
    private MonthlyCalendar month12;
    private MonthlyCalendar month2;
    private MonthlyCalendar month3;
    private MonthlyCalendar month4;
    private MonthlyCalendar month5;
    private MonthlyCalendar month6;
    private MonthlyCalendar month7;
    private MonthlyCalendar month8;
    private MonthlyCalendar month9;
    private javax.swing.JPanel unit1;
    private javax.swing.JPanel unit10;
    private javax.swing.JPanel unit11;
    private javax.swing.JPanel unit12;
    private javax.swing.JPanel unit2;
    private javax.swing.JPanel unit3;
    private javax.swing.JPanel unit4;
    private javax.swing.JPanel unit5;
    private javax.swing.JPanel unit6;
    private javax.swing.JPanel unit7;
    private javax.swing.JPanel unit8;
    private javax.swing.JPanel unit9;
    // End of variables declaration//GEN-END:variables
    
}